import react from '@vitejs/plugin-react'
import vitePluginCompress from 'vite-plugin-compression'
import path from 'path';
import {defineConfig} from 'vite'

export default defineConfig({
  plugins:
    [
      react(),
      vitePluginCompress(),
    ],
  resolve: {
    alias: {
      '@': path.resolve(__dirname, 'src'),
    },
  },
  publicDir: "../public/",
  base: './',
  server:
    {
      host: true,
      port: 3635,
      open: true
    },
  build:
    {
      outDir: '../dist',
      emptyOutDir: true,
      sourcemap: false
    }
})
